package com.zzx.boot.utils;

import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;

/**
 * @author tan
 * @version 1.0
 * @date 2023/7/8 17:00
 */
public class DateTImeUtils {

    public static String getDate(){
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("YYYY-MM-dd HH:mm:ss"));
    }

    public static String getDateDir(){
        return LocalDateTime.now().format(DateTimeFormatter.ofPattern("YYYY/MM/dd/"));
    }


}
